package cn.com.zero.manager.auth.service.impl;

import cn.com.zero.api.auth.vo.OnlineUserVO;
import cn.com.zero.common.auth.service.impl.AbstractOnlineUserService;
import cn.com.zero.manager.auth.mapper.IManagerOnlineUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author guoxin
 * @version 1.0.0
 * @Description
 * @date 2023/4/3 15:10
 */
@Service
public class ManagerOnlineUserService extends AbstractOnlineUserService {

    private IManagerOnlineUserMapper managerOnlineUserMapper;

    @Override
    protected Map<String, OnlineUserVO> getUsers(List<String> userIds) {
        return managerOnlineUserMapper.getOnlineUsersDetailInfo(userIds);
    }

    @Autowired
    public void setManagerOnlineUserMapper(IManagerOnlineUserMapper managerOnlineUserMapper) {
        this.managerOnlineUserMapper = managerOnlineUserMapper;
    }
}
